package com.kangye.game.service.impl;

import com.kangye.game.dao.TUserMapper;
import com.kangye.game.pojo.TUser;
import com.kangye.game.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: game_orders
 * @description: 登陆实现服务类
 * @author: lys
 * @create: 2021-09-01 14:55
 **/
@Service
public class LoginServiceImpl implements LoginService {
    @Resource
    private TUserMapper tUserMapper;

    @Override
    public List<TUser> getLogin(String loginname, String password) {
        Map<String, String> map = new HashMap<>();
        map.put("loginname", loginname);
        map.put("password", password);
        List<TUser> tUsers = new ArrayList<>();
        tUsers = tUserMapper.getLogin(map);
        return tUsers;
    }


}
